package com.ctgu.demo03.service;

import com.ctgu.demo03.entity.ProductsEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ctgu.demo03.utils.ApiResult;

import java.math.BigDecimal;

/**
* @author Alex2
* @description 针对表【t_products】的数据库操作Service
* @createDate 2025-03-11 21:41:45
*/
public interface ProductsService extends IService<ProductsEntity> {

    ApiResult insertProducts(String name, Integer stock);

    ApiResult updateProductPrice(Integer id);

    boolean updateProductPriceTransactional(Integer id, Integer version);
}